home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-10-06 | 1.2 KB | 46 lines | [TEXT/GEOL] |
- Item 3770512 6-Oct-89 02:03
-
- From: D0738 Kane Biomedical System, S Helm,PRT
-
- To: MACAPP.TECH$ MACAPP Tech
-
- Sub: Object Pascal Question
-
- Attn: MacApp.Tech
- SentBy: Kane
- Date 10/5/89
- Subject Object Pascal Question
- From Kane
- To MacApp.Tech
- CC Kane
-
- Subject: Time: 9:48 AM
- OFFICE MEMO Object Pascal Question Date: 10/5/89
- I have a general question regarding object Pascal that I can't find addressed
- in any of the documentation. What I want to do is have two objects refer to
- one another. An example would be:
-
- TYPE
- TmyObj = OBJECT(TOBJECT)
- x,y: integer;
- z: point
- aList : TList;
- function TmyObj.func1(x1,y1):integer;
- end;
-
- TList = array [0..5] of TmyObj;
-
-
- you can see that TmyObj has a TList in it, and TList is an array of TMyObj.
- I can of course get around all this by simple delclaring TList as
-
- TList = array [0..5] of TObject;
-
- and then checking within any procedure if
-
- Member(aList[i],TmyObj)
-
- but this seems like a kludge. Any help would be appreciated.
- Jeffrey
-
-